<?php if (!defined("BASEPATH")) exit("No direct script access allowed");

class Logout extends MY_Controller {

	public function __construct() {
		parent::__construct();
		$this->session->sess_destroy();
		$this->db->query("commit");

		$this->load->helper("cookie");
		delete_cookie("usrEmail");
		delete_cookie("usrPassword");

		redirect(site_url());
	}

}